package LinesCraft;
import java.util.Random;


public class Mobs {
	Inventory inv = new Inventory();
	
	boolean agressive;
	int health;
	Items[] drop = new Items[2];
	String name;
	int experience;		//that's right.. but I don't want to make this in this version, only in the remake.
	
	public Mobs(String name, boolean agressive, Items drop1, Items drop2){
		this.name=name;
		this.agressive=agressive;
		this.drop[0]=drop1;
		this.drop[1]=drop2;
		
	}
	
	void morning(){		//things that should happen when the sun rises
						/* Plan: I should make a for example spiders[] array wich stores every living spider objects from every location so setting
						 * all of their agressiveness to false would be easier. or dunno.
						 */
		
	}
	
	void night(){		//thing thats should happen when the sun sets
		
	}
	
	void die(){
		Random ranDrop = new Random();
		int rn = ranDrop.nextInt(5);
		if(rn>0){
			inv.add(this.drop[0], 1);
		}else if(rn>2){
			inv.add(this.drop[1], 1);
		}
	}
	
	void attack(){
		
	}
}
